import { ViewTool } from '@/utils';

/**
 * IndexView 部件模型
 *
 * @export
 * @class IndexViewModel
 */
export default class IndexViewModel {

    /**
     * 菜单项集合
     *
     * @private
     * @type {any[]}
     * @memberof IndexViewModel
     */
    private items: any[] = [
                {
        	id: '62d1e15d1101a21fa761909a0bf211a0',
        	name: 'menuitem61',
        	text: '工作台',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '工作台',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: true,
        	iconcls: 'fa fa-desktop',
        	icon: '',
        	textcls: '',
        	appfunctag: 'Auto37',
        	appfunctype: 'APPVIEW',
        	viewname: 'app-portal-view',
        	authtag:'EAMWeb-IndexView-menuitem61',
        	localetag: 'app.menus.IndexView.menuitem61',
        }
        ,
                {
        	id: 'aca04834b859a26e1366c8bb1821f655',
        	name: 'menuitem3',
        	text: '设备',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '设备',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-align-right',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem3',
        	localetag: 'app.menus.IndexView.menuitem3',
        	items: [
                		        {
                	id: '91e3f447bcf751acb68ad992b2f5b3bc',
                	name: 'menuitem1',
                	text: '设备类型',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '设备类型',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto21',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqtype-tree-exp-view2',
                	authtag:'EAMWeb-IndexView-menuitem1',
                	localetag: 'app.menus.IndexView.menuitem1',
                }
                ,
                		        {
                	id: 'a830789a1368339c6f11df663767ce81',
                	name: 'menuitem8',
                	text: '设备档案',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '设备档案',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto1',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqtype-tree-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem8',
                	localetag: 'app.menus.IndexView.menuitem8',
                }
                ,
                		        {
                	id: '197c51c6dff3b94e5db619065a64f1d3',
                	name: 'menuitem5',
                	text: '位置',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '位置',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto12',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqlocation-tree-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem5',
                	localetag: 'app.menus.IndexView.menuitem5',
                }
                ,
                		        {
                	id: '0ee99b62d7d4a3ca7e0dd8ce53d90461',
                	name: 'menuitem6',
                	text: '文档',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '文档',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto20',
                	appfunctype: 'APPVIEW',
                	viewname: 'emdrwgtree-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem6',
                	localetag: 'app.menus.IndexView.menuitem6',
                }
                ,
                		        {
                	id: '91a5261cca34041e70cac023b5014d92',
                	name: 'menuitem7',
                	text: '备件包',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '备件包',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto10',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqspare-grid-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem7',
                	localetag: 'app.menus.IndexView.menuitem7',
                }
                ,
        	],
        }
        ,
                {
        	id: '90da0ad442a497d594eba60e44416344',
        	name: 'menuitem72',
        	text: '运行',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '运行',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-bug',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem72',
        	localetag: 'app.menus.IndexView.menuitem72',
        	items: [
                		        {
                	id: '0b8d8016f3de8bd4b0556b0178fcd940',
                	name: 'menuitem73',
                	text: '运行日志',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '运行日志',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto65',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqwlgrid-view',
                	authtag:'EAMWeb-IndexView-menuitem73',
                	localetag: 'app.menus.IndexView.menuitem73',
                }
                ,
                		        {
                	id: '28dd7523acb595c3245a9e1c28390bee',
                	name: 'menuitem74',
                	text: '运行监控',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '运行监控',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto60',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqmonitor-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem74',
                	localetag: 'app.menus.IndexView.menuitem74',
                }
                ,
                		        {
                	id: 'd498e4a38dc531f256a9e54187abbcf7',
                	name: 'menuitem77',
                	text: '仪表',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '仪表',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto62',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqmpgrid-view',
                	authtag:'EAMWeb-IndexView-menuitem77',
                	localetag: 'app.menus.IndexView.menuitem77',
                }
                ,
                		        {
                	id: '2b6cce74c3bad8aff020d17214ad0a67',
                	name: 'menuitem78',
                	text: '仪表读数',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '仪表读数',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto59',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqmpmtrgrid-view',
                	authtag:'EAMWeb-IndexView-menuitem78',
                	localetag: 'app.menus.IndexView.menuitem78',
                }
                ,
                		        {
                	id: 'bf17bf59e9ffa27b9df41cc23e73cfb9',
                	name: 'menuitem75',
                	text: '关键点',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '关键点',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto63',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqkpgrid-view',
                	authtag:'EAMWeb-IndexView-menuitem75',
                	localetag: 'app.menus.IndexView.menuitem75',
                }
                ,
                		        {
                	id: 'cba9cb3b4f3017bd6ebe8301bd24b9bf',
                	name: 'menuitem76',
                	text: '关键点记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '关键点记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto67',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqkprcdgrid-view',
                	authtag:'EAMWeb-IndexView-menuitem76',
                	localetag: 'app.menus.IndexView.menuitem76',
                }
                ,
        	],
        }
        ,
                {
        	id: 'ea4c24a1edc4468262b8b1563aece85b',
        	name: 'menuitem16',
        	text: '计划',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '计划',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-pencil-square-o',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem16',
        	localetag: 'app.menus.IndexView.menuitem16',
        	items: [
                		        {
                	id: '8cd21f2248f50d05feeae05af87695f6',
                	name: 'menuitem17',
                	text: '计划',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '计划',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto15',
                	appfunctype: 'APPVIEW',
                	viewname: 'emplan-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem17',
                	localetag: 'app.menus.IndexView.menuitem17',
                }
                ,
                		        {
                	id: '125e8e816acfc07ce31269c235234562',
                	name: 'menuitem18',
                	text: '计划模板',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '计划模板',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto6',
                	appfunctype: 'APPVIEW',
                	viewname: 'emplan-templ-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem18',
                	localetag: 'app.menus.IndexView.menuitem18',
                }
                ,
        	],
        }
        ,
                {
        	id: 'e0d669a7e3fed03d27bfb5e2faa88383',
        	name: 'menuitem33',
        	text: '能耗',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '能耗',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-area-chart',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem33',
        	localetag: 'app.menus.IndexView.menuitem33',
        	items: [
                		        {
                	id: '7de90ca0fde034a263f0a7cba33345a3',
                	name: 'menuitem50',
                	text: '能源',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '能源',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto35',
                	appfunctype: 'APPVIEW',
                	viewname: 'emengrid-view',
                	authtag:'EAMWeb-IndexView-menuitem50',
                	localetag: 'app.menus.IndexView.menuitem50',
                }
                ,
                		        {
                	id: 'a4403b92e10915d7b6017a8f66931030',
                	name: 'menuitem55',
                	text: '能耗',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '能耗',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto32',
                	appfunctype: 'APPVIEW',
                	viewname: 'emenconsum-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem55',
                	localetag: 'app.menus.IndexView.menuitem55',
                }
                ,
        	],
        }
        ,
                {
        	id: '784133e400807ee0e42040989626f404',
        	name: 'menuitem9',
        	text: '工单',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '工单',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-align-justify',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem9',
        	localetag: 'app.menus.IndexView.menuitem9',
        	items: [
                		        {
                	id: '2f1cfc2fd8eb19a8e7843622f352c063',
                	name: 'menuitem69',
                	text: '工单日历',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '工单日历',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto58',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwocalendar-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem69',
                	localetag: 'app.menus.IndexView.menuitem69',
                }
                ,
                		        {
                	id: 'b12f2564211ecd3495581d1ec8429f1d',
                	name: 'menuitem11',
                	text: '内部工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '内部工单',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto9',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwo-innertab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem11',
                	localetag: 'app.menus.IndexView.menuitem11',
                }
                ,
                		        {
                	id: 'a876893cac8500fc63ff54fb105af0ad',
                	name: 'menuitem12',
                	text: '外委工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '外委工单',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto17',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwo-osctab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem12',
                	localetag: 'app.menus.IndexView.menuitem12',
                }
                ,
                		        {
                	id: '4760e11b6643f3ecf9c93a0e9f1431a6',
                	name: 'menuitem13',
                	text: '能耗工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '能耗工单',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto5',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwo-entab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem13',
                	localetag: 'app.menus.IndexView.menuitem13',
                }
                ,
                		        {
                	id: '8dbfd1440ee08edf4ec78bc0710f696a',
                	name: 'menuitem14',
                	text: '点检工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '点检工单',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto3',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwo-dptab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem14',
                	localetag: 'app.menus.IndexView.menuitem14',
                }
                ,
                		        {
                	id: 'fc24879f15de57c4ef0d109ef73920c1',
                	name: 'menuitem15',
                	text: '外委申请',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '外委申请',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto16',
                	appfunctype: 'APPVIEW',
                	viewname: 'emapply-tab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem15',
                	localetag: 'app.menus.IndexView.menuitem15',
                }
                ,
        	],
        }
        ,
                {
        	id: 'e451c96d55e18e7e446f349794a81cd9',
        	name: 'menuitem32',
        	text: '活动',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '活动',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-university',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem32',
        	localetag: 'app.menus.IndexView.menuitem32',
        	items: [
                		        {
                	id: '2b3ce90834050cbe35707325ae2a3c3a',
                	name: 'menuitem70',
                	text: '活动日历',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '活动日历',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto64',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqahcalendar-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem70',
                	localetag: 'app.menus.IndexView.menuitem70',
                }
                ,
                		        {
                	id: '5653e4a0f09955bb699647a7e6e6a8d3',
                	name: 'menuitem56',
                	text: '更换安装',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '更换安装',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto27',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqsetup-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem56',
                	localetag: 'app.menus.IndexView.menuitem56',
                }
                ,
                		        {
                	id: 'da00f5c4672f07ef2a48df1648e98663',
                	name: 'menuitem57',
                	text: '事故记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '事故记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto33',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqdebug-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem57',
                	localetag: 'app.menus.IndexView.menuitem57',
                }
                ,
                		        {
                	id: '372acbd4a93a650ff2eeefa6cb161a9f',
                	name: 'menuitem58',
                	text: '维修记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '维修记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto38',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqcheck-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem58',
                	localetag: 'app.menus.IndexView.menuitem58',
                }
                ,
                		        {
                	id: '2481c1cb7d1178ea0ca4d45f268edd80',
                	name: 'menuitem59',
                	text: '抢修记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '抢修记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto31',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqmaintance-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem59',
                	localetag: 'app.menus.IndexView.menuitem59',
                }
                ,
                		        {
                	id: '2ca6f227b185e1a9f7b740501297b656',
                	name: 'menuitem60',
                	text: '保养记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '保养记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto28',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqkeep-grid-view',
                	authtag:'EAMWeb-IndexView-menuitem60',
                	localetag: 'app.menus.IndexView.menuitem60',
                }
                ,
        	],
        }
        ,
                {
        	id: '340d799544c2f9e4ca10677ceba6741e',
        	name: 'menuitem31',
        	text: '故障',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '故障',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-exclamation-triangle',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem31',
        	localetag: 'app.menus.IndexView.menuitem31',
        	items: [
                		        {
                	id: '715c2343e7e8cb6854c43e731d240efe',
                	name: 'menuitem79',
                	text: '故障知识库',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '故障知识库',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto66',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfodegrid-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem79',
                	localetag: 'app.menus.IndexView.menuitem79',
                }
                ,
                		        {
                	id: 'ef9e2ca27c33a60ee15fcba69f7b935b',
                	name: 'menuitem48',
                	text: '现象',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '现象',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto50',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfodegrid-view',
                	authtag:'EAMWeb-IndexView-menuitem48',
                	localetag: 'app.menus.IndexView.menuitem48',
                }
                ,
                		        {
                	id: '5c468548b5b9393e31c89bb9d2900a4c',
                	name: 'menuitem47',
                	text: '现象分类',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '现象分类',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto26',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfodetypegrid-view',
                	authtag:'EAMWeb-IndexView-menuitem47',
                	localetag: 'app.menus.IndexView.menuitem47',
                }
                ,
                		        {
                	id: '1592c1668559c019ae73ecc376ee5fe2',
                	name: 'menuitem49',
                	text: '模式',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '模式',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto41',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfomogrid-view',
                	authtag:'EAMWeb-IndexView-menuitem49',
                	localetag: 'app.menus.IndexView.menuitem49',
                }
                ,
                		        {
                	id: '023a183ee4074929c594098c5850abd2',
                	name: 'menuitem51',
                	text: '原因',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '原因',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto48',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfocagrid-view',
                	authtag:'EAMWeb-IndexView-menuitem51',
                	localetag: 'app.menus.IndexView.menuitem51',
                }
                ,
                		        {
                	id: '16ae8e16fc0afbcd1e7258cef286b7e0',
                	name: 'menuitem52',
                	text: '方案',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '方案',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto30',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfoacgrid-view',
                	authtag:'EAMWeb-IndexView-menuitem52',
                	localetag: 'app.menus.IndexView.menuitem52',
                }
                ,
        	],
        }
        ,
                {
        	id: '8a31c189b74d7feb9b99cf66303ab0e9',
        	name: 'menuitem30',
        	text: '资产',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '资产',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-navicon',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem30',
        	localetag: 'app.menus.IndexView.menuitem30',
        	items: [
                		        {
                	id: '5e6296bb0527245492b28469bf91c2a8',
                	name: 'menuitem43',
                	text: '资产科目',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '资产科目',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto51',
                	appfunctype: 'APPVIEW',
                	viewname: 'emassetclassgrid-view',
                	authtag:'EAMWeb-IndexView-menuitem43',
                	localetag: 'app.menus.IndexView.menuitem43',
                }
                ,
                		        {
                	id: '3c2daa4517a5138ff3f2da156cf76bb7',
                	name: 'menuitem44',
                	text: '固定资产台账',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '固定资产台账',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto29',
                	appfunctype: 'APPVIEW',
                	viewname: 'emassetgrid-view',
                	authtag:'EAMWeb-IndexView-menuitem44',
                	localetag: 'app.menus.IndexView.menuitem44',
                }
                ,
                		        {
                	id: 'e561b23927ef64b9ab0f41ddf9864e3a',
                	name: 'menuitem45',
                	text: '报废资产',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '报废资产',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto46',
                	appfunctype: 'APPVIEW',
                	viewname: 'emassetgrid-view-bf',
                	authtag:'EAMWeb-IndexView-menuitem45',
                	localetag: 'app.menus.IndexView.menuitem45',
                }
                ,
                		        {
                	id: '1fab51747f22c63ac7a31c3010c64c30',
                	name: 'menuitem46',
                	text: '资产盘点记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '资产盘点记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto39',
                	appfunctype: 'APPVIEW',
                	viewname: 'emasset-clear-grid-view-5564',
                	authtag:'EAMWeb-IndexView-menuitem46',
                	localetag: 'app.menus.IndexView.menuitem46',
                }
                ,
        	],
        }
        ,
                {
        	id: '9cfc55c5762f6d86c74dcfc0e8bdcaba',
        	name: 'menuitem4',
        	text: '材料',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '材料',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-file-o',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem4',
        	localetag: 'app.menus.IndexView.menuitem4',
        	items: [
                		        {
                	id: '8b4ec6aaca0699e2028d6b5a2e8dd469',
                	name: 'menuitem2',
                	text: '物品类型',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '物品类型',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto22',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-type-info-tree-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem2',
                	localetag: 'app.menus.IndexView.menuitem2',
                }
                ,
                		        {
                	id: 'f3860426358cd71f3aa18b71403869ab',
                	name: 'menuitem19',
                	text: '物品',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '物品',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto14',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-type-item-tree-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem19',
                	localetag: 'app.menus.IndexView.menuitem19',
                }
                ,
                		        {
                	id: 'aba7daa88761523de4b763ab9cd182a7',
                	name: 'menuitem21',
                	text: '库存管理',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '库存管理',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto2',
                	appfunctype: 'APPVIEW',
                	viewname: 'emstore-tree-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem21',
                	localetag: 'app.menus.IndexView.menuitem21',
                }
                ,
                		        {
                	id: 'ae2cd087d5adf4ecdc29f297420c2745',
                	name: 'menuitem24',
                	text: '损溢单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '损溢单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto18',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-pltab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem24',
                	localetag: 'app.menus.IndexView.menuitem24',
                }
                ,
                		        {
                	id: '4e40097b17a3d3052d2b64a122f627a8',
                	name: 'menuitem25',
                	text: '调整单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '调整单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto4',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-cstab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem25',
                	localetag: 'app.menus.IndexView.menuitem25',
                }
                ,
                		        {
                	id: 'b2f8dc6db4f3356f4b0a486ad969bf20',
                	name: 'menuitem27',
                	text: '出库单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '出库单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto13',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-rout-tab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem27',
                	localetag: 'app.menus.IndexView.menuitem27',
                }
                ,
                		        {
                	id: 'f3088ef79f30add28ae3f1b51b7ec9a4',
                	name: 'menuitem23',
                	text: '领料单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '领料单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto7',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-puse-tab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem23',
                	localetag: 'app.menus.IndexView.menuitem23',
                }
                ,
                		        {
                	id: '225ceb368b7dafc548747408c96df6d0',
                	name: 'menuitem28',
                	text: '还料单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '还料单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto8',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-prtn-tab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem28',
                	localetag: 'app.menus.IndexView.menuitem28',
                }
                ,
        	],
        }
        ,
                {
        	id: '1dd9c12fcc2d904366c60141a5bbe40f',
        	name: 'menuitem29',
        	text: '采购',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '采购',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-leanpub',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem29',
        	localetag: 'app.menus.IndexView.menuitem29',
        	items: [
                		        {
                	id: 'f6e3488b6a4164056075c1d69716e74b',
                	name: 'menuitem64',
                	text: '采购流程',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '采购流程',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto54',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwplist-wp-process-tree-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem64',
                	localetag: 'app.menus.IndexView.menuitem64',
                }
                ,
                		        {
                	id: 'f6c0136750c346c0b6cdeaca611eaa0f',
                	name: 'menuitem38',
                	text: '服务商',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '服务商',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto36',
                	appfunctype: 'APPVIEW',
                	viewname: 'emservice-tab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem38',
                	localetag: 'app.menus.IndexView.menuitem38',
                }
                ,
                		        {
                	id: '356540445b7c505f0cd55f5fff1bb433',
                	name: 'menuitem39',
                	text: '服务商评估',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '服务商评估',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto34',
                	appfunctype: 'APPVIEW',
                	viewname: 'emservice-evl-tab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem39',
                	localetag: 'app.menus.IndexView.menuitem39',
                }
                ,
        	],
        }
        ,
                {
        	id: '6138adf7a46df6c2b3319c1f8a000a44',
        	name: 'menuitem62',
        	text: '预警',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '预警',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-bell-o',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem62',
        	localetag: 'app.menus.IndexView.menuitem62',
        	items: [
                		        {
                	id: '8488577e62ea3cc8c383ed82e1ffd559',
                	name: 'menuitem63',
                	text: '钢丝绳位置超期预警',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '钢丝绳位置超期预警',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto24',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqlctgsstab-exp-view',
                	authtag:'EAMWeb-IndexView-menuitem63',
                	localetag: 'app.menus.IndexView.menuitem63',
                }
                ,
        	],
        }
        ,
                {
        	id: '135efd064f6dc550bdc357abb8da3337',
        	name: 'menuitem65',
        	text: '系统管理',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '系统管理',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-IndexView-menuitem65',
        	localetag: 'app.menus.IndexView.menuitem65',
        }
        ,
    ];

	/**
	 * 应用功能集合
	 *
	 * @private
	 * @type {any[]}
	 * @memberof IndexViewModel
	 */
	private funcs: any[] = [
	];

	/**
	 * 根据当前路由查找激活菜单
	 *
	 * @param {*} route
	 * @returns {*}
	 * @memberof IndexViewModel
	 */
	public findActiveMenuByRoute(route: any): any {
		if (route) {
			const func = this.funcs.find((item: any) => {
				if (item.openmode === '') {
					const url: string = ViewTool.buildUpRoutePath(route, route.params, [], item.parameters, [], {});
					return url === route.fullPath;
				}
			});
            if (func) {
			    return this.findMenuByFuncTag(func.appfunctag);
            }
		}
	}

	/**
	 * 根据应用功能id查找菜单项
	 *
	 * @param {string} tag
	 * @param {any[]} [menus=this.items]
	 * @returns {*}
	 * @memberof IndexViewModel
	 */
	public findMenuByFuncTag(tag: string, menus: any[] = this.items): any {
		let menu: any;
		menus.every((item: any) => {
			if (item.appfunctag === tag) {
				menu = item;
				return false;
			}
			if (item.items) {
				menu = this.findMenuByFuncTag(tag, item.items);
				if (menu) {
					return false;
				}
			}
			return true;
		});
		return menu;
	}

	/**
	 * 查找默认打开菜单
	 *
	 * @param {any[]} [menus=this.items]
	 * @returns {*}
	 * @memberof IndexViewModel
	 */
	public findDefaultOpenMenu(menus: any[] = this.items): any {
		let menu: any;
		menus.every((item: any) => {
			if (item.opendefault === true) {
				menu = item;
				return false;
			}
			if (item.items) {
				menu = this.findMenuByFuncTag(item.items);
				if (menu) {
					return false;
				}
			}
			return true;
		});
		return menu;
	}

    /**
     * 获取所有菜单项集合
     *
     * @returns {any[]}
     * @memberof IndexViewModel
     */
    public getAppMenuItems(): any[] {
        return this.items;
    }

	/**
	 * 根据名称获取菜单组
	 *
	 * @param {string} name
	 * @returns {*}
	 * @memberof IndexViewModel
	 */
	public getMenuGroup(name: string): any {
		return this.items.find((item: any) => Object.is(item.name, name));
	}

    /**
     * 获取所有应用功能集合
     *
     * @returns {any[]}
     * @memberof IndexViewModel
     */
    public getAppFuncs(): any[] {
        return this.funcs;
    }
}